<template>
  <div class="viewContain">
    <div style="margin-bottom:20px;text-align:right">
      <el-button type="primary" size="mini" @click="handleBack">返回</el-button>
    </div>
    <el-table
      ref="table"
      v-loading="loading"
      fit
      stripe
      :data="tableData"
      border
      size="mini"
    >
      <el-table-column align="center" label="序号" type="index">
        <template slot-scope="scope">
          <span>{{ (listQuery.pageNo - 1) * listQuery.pageSize + scope.$index + 1 }}</span>
        </template>
      </el-table-column>
      <el-table-column prop="userName" align="center" label="账号" />
      <el-table-column prop="quotaNum" align="center" label="额度(%)" />
      <el-table-column prop="quotaTime" align="center" label="设置时间" />
    </el-table>
    <pagination
      :total-count="totalCount"
      :page.sync="listQuery.pageNo"
      :limit.sync="listQuery.pageSize"
      @pagination="getList"
    />
  </div>
</template>

<script>
import pagination from '@/components/pagination/index.vue'
import { commonMixin } from '@v/mixin/commonMixin.js'
import ComApiUrl from '@a/comomApi.js'
export default {
  components: { pagination },
  mixins: [commonMixin],
  data() {
    return {
      comApiUrlList: new ComApiUrl('/member/api/quota/list'),
      listQuery: {
        pageNo: 1,
        pageSize: 10,
        userName: ''
      }
    }
  },
  mounted() {
    this.listQuery.userName = localStorage.getItem('userName_limit')
    this.getList()
  },
  methods: {
  }
}
</script>
